package com.kuaimacode.kframework.mybatis.models.finance;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author anzy
 * @date 2019/05/22
 */
@TableName("agent_account_detail")
@Data
public class AgentAccountDetail implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	@ApiModelProperty(value = "")
	@TableField("agent_id")
	private String agentId;

	@ApiModelProperty(value = "分站名称")
	@TableField(exist = false)
	private String agentName;

	@ApiModelProperty(value = "订单分站")
	@TableField(exist = false)
	private String orderAgentId;

	@ApiModelProperty(value = "1收入  2 支出")
	@TableField("in_out")
	private String inOut;
	@ApiModelProperty(value = "交易类型 1：订单抽成 2 ：保费收入 3：手续费收入 11：提现")
	@TableField("tran_type")
	private String tranType;
	@ApiModelProperty(value = "")
	@TableField("amount")
	private BigDecimal amount;
	@ApiModelProperty(value = "交易后账户余额")
	@TableField("tran_bal")
	private BigDecimal tranBal;
	@ApiModelProperty(value = "交易备注")
	@TableField("tran_desc")
	private String tranDesc;
	@ApiModelProperty(value = "交易时间")
	@TableField("tran_time")
	private Date tranTime;
	@ApiModelProperty(value = "关联交易id")
	@TableField("tran_id")
	private String tranId;

	@ApiModelProperty(value = "删除状态")
	@TableField("status")
	private String status;


}
